/**
 * 
 */
package com.lgx.right.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.lgx.common.entity.AbstractObject;

/**
 * @author hezhuo
 * 
 * 会员卡
 *
 */
@Entity
@Table(name="TS_CARD")
public class Card  extends AbstractObject implements Serializable {

	/**
	 * 新的卡，未绑定
	 */
	public static final int CARD_NEW = 0;
	
	/**
	 * 以绑定用户的卡
	 */
	public static final int CARD_INUSE = 1;
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 990152251007193288L;

	@Id
	@Column(name="id")
	private String id;
	
	/**
	 * 卡上积分
	 */
	@Column(name="score")
	private double score = 0;
	
	/**
	 * 总积分
	 */
	@Column(name="totalscore")
	private double totalScore = 0;
	
	/**
	 * 卡的状态 0表示是新卡，可以分配给用户，1表示已分配正在使用
	 */
	@Column(name="status")
	private int status = CARD_NEW;
	
	private String password;

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public double getScore() {
		return score;
	}

	public void setScore(double score) {
		this.score = score;
	}

	public double getTotalScore() {
		return totalScore;
	}

	public void setTotalScore(double totalScore) {
		this.totalScore = totalScore;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}
	
}